<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:t="https://code.google.com/p/rad-framework/taglib"
	xmlns:s="http://jboss.com/products/seam/taglib">
	
	<ui:remove>
	NOTE s:link might be slower, could switch to outputLink
	TODO need viewpath
	
	entity="#{t:find('full.class.Name',id)}"
	</ui:remove>
	
	<c:if test="#{reference != null}">
		<s:link id="#{id}Link" 
			value="#{value}" 
			view="/jsf/#{type}/View.xhtml"
			propagation="none">
	
			<f:param name="id" value="#{key}"/>

			<rich:toolTip 
				direction="bottom-right" 
				showDelay="500" 
				hideDelay="700"
				styleClass="tooltip"
				layout="block">
					<ui:include
						src="/jsf/#{type}/ViewPanel.xhtml">
						<ui:param name="entity" value="#{reference}" />
						<ui:param name="label" value="#{messages[type]}" />
					</ui:include>
			</rich:toolTip>
		</s:link>
	</c:if>

</ui:composition>
